﻿using System;
using System.Collections.Generic;
using System.Text;
using BlueFinity.mvNET.CoreObjects;

namespace mvLibrary.Helpers.Querys
{
    public static class PickResultsFormatter
    {
        public static Dictionary<string, string> ItemListToDictionary(string itemsList)
        {
            Dictionary<string, string> fileItems = new Dictionary<string, string>();
            mvItem items = new mvItem();
            items.Contents = itemsList;
            for (int x = 1; x <= items.DCount(); ++x)
            {
                fileItems.Add(items.get_Text(x, 1, 1), items.get_Text(x, 2, 1));
            }

            return fileItems;
        }

    }
}
